package com.baiye.www.spring.aop.advisor;

import com.baiye.www.spring.aop.pointcut.AspectJExpressionPointcut;
import org.aopalliance.aop.Advice;

/**
 * @author baiye
 * @version 1.0
 * @date 2021/12/12 14:56
 */
public class AspectJExpressionPointcutAdvisor implements PointcutAdvisor {
    private AspectJExpressionPointcut pointcut = new AspectJExpressionPointcut();
    private Advice advice;

    public void setExpression(String expression) {
        pointcut.setExpression(expression);
    }

    @Override
    public AspectJExpressionPointcut getPointcut() {
        return pointcut;
    }

    @Override
    public Advice getAdvice() {
        return advice;
    }

    public void setAdvice(Advice advice) {
        this.advice = advice;
    }


}
